package ar.edu.itba.it.pdc.httpParser;

import ar.edu.itba.it.pdc.httpParser.exceptions.HttpBadRequestException;
import ar.edu.itba.it.pdc.httpParser.exceptions.HttpMethodNotSuportedException;
import ar.edu.itba.it.pdc.httpParser.exceptions.HttpVersionNotSuportedException;
import ar.edu.itba.it.pdc.httpParser.interfaces.Model;
import ar.edu.itba.it.pdc.httpParser.interfaces.Parser;
import ar.edu.itba.it.pdc.httpParser.models.HttpBody;
import ar.edu.itba.it.pdc.httpParser.models.Token;

public class NoBoadyParser implements Parser {

	@Override
	public Model getModel() {
		return new HttpBody();
	}

	@Override
	public int parseToken(Token token)
			throws HttpMethodNotSuportedException, HttpBadRequestException,
			HttpVersionNotSuportedException {
		throw new HttpBadRequestException(token);
	}

}
